package com.yfp.system.api;

import com.yfp.common.core.constant.SecurityConstants;
import com.yfp.common.core.constant.ServiceNameConstants;
import com.yfp.common.core.domain.R;
import com.yfp.common.core.web.domain.AjaxResult;
import com.yfp.system.api.factory.RemoteUserFallbackFactory;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 用户服务
 */
@FeignClient(contextId = "remoteRoleService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteRoleService {

    @GetMapping("/role/findRoleCityName")
    @Operation(summary = "查询当前登录账号角色城市", description = "查询当前登录账号角色城市")
    public R<List<String>> findRoleCity();

}
